//
//  SuperViewController.h
//  MissAndFound
//
//  Created by apple on 14-12-4.
//  Copyright (c) 2014年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CellView.h"
#import "NSString+Helper.h"
#import "Stockpile.h"
#import "AppDelegate.h"
#import "RDVTabBar.h"

#import "UIImageView+AFNetworking.h"
#import "CustomProgress.h"
#import "UIButton+AFNetworking.h"
#import "LineView.h"

#import "UIImage+Helper.h"
#import "UINavigationController+FDFullscreenPopGesture.h"
#import "zhPopupController.h"
#import "CountDown.h"
#import "UIView+TYAlertView.h"
#import "TYAlertController+BlurEffects.h"
#import "JMFloatIcon.h"
#import "BRPlaceholderTextView.h"
#import "JMPublicAlertView.h"
#import <CoreLocation/CoreLocation.h>

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"



//如果是0，是取消，1是确定
typedef void(^AlertBlock)(NSInteger index);
typedef void(^TiShiKuangBlock)(NSInteger index);
typedef void(^AlertBlock1)(NSInteger index,UIAlertView *tf);
#pragma clang diagnostic pop
@interface SuperViewController : UIViewController
@property(nonatomic,assign)float scale;
@property(nonatomic,copy)void(^fanTime)(NSString *str);
@property(nonatomic,copy)void(^fanaddress)(NSString *str,NSDictionary *dic);
@property(nonatomic,copy)void(^fanzuzhi)(NSString *str,NSString *Id);
@property(nonatomic,strong)UIImageView *NavImg;
@property(nonatomic,strong)UILabel *TitleLabel;
@property(nonatomic,strong)UIActivityIndicatorView *activityVC;
@property(nonatomic,strong)UIImageView *Navline;
@property(nonatomic,strong)AppDelegate *appdelegate;
@property(nonatomic,strong)CustomProgress *custompro;
@property(nonatomic,strong)NSTimer *timerSuper;
@property(nonatomic,strong)UIButton *backBtn;
@property(nonatomic,strong)UIButton *rightBarBtn;
//提示框block
@property(nonatomic,strong)AlertBlock alertBlock;
@property(nonatomic,strong)AlertBlock1 alertBlock1;
@property(nonatomic,strong)TiShiKuangBlock tiShiBlock;

@property(nonatomic,strong)JMFloatIcon *floatView;
@property(nonatomic,strong)JMPublicAlertView *feedbackAlertV;//反馈
@property(nonatomic,strong)BRPlaceholderTextView *textV;//语音验证码弹窗

/** 当前页 */
@property(nonatomic,assign)NSInteger index;
/** 数据 */
@property(nonatomic,strong)NSMutableArray *dataArray;
//列表数据使用
@property(nonatomic,strong)NSMutableDictionary *dataDict;
///认证页面使用--用户填写的认证数据
@property (nonatomic,strong)NSMutableDictionary *infoDict;;
//开始时间戳
@property(nonatomic,assign)NSInteger startTime;
//结束时间戳
@property(nonatomic,assign)NSInteger endTime;

@property(nonatomic,assign)BOOL reshEnd;
-(NSInteger)startTime;
-(void)backBtnClick;
- (void)defaultNaviConfig;
- (void)setRightBarBtnWithImage:(NSString *)imgName Target:(id)target Action:(SEL)action;
- (void)setRightBarBtnWithTitle:(NSString *)title TitleColor:(UIColor *)color Target:(id)target Action:(SEL)action;

-(UIStatusBarStyle)preferredStatusBarStyle;
-(void)showMessage:(NSString *)message;

-(void)showSuccess:(NSString *)message;
-(void)ShowAlertWithMessage:(NSString *)message;

-(void)goModifyBankAccountVC;

-(void)livenessWithImage:(UIImage *)photo result:(void(^)(NSString * ,NSString*))result;

-(void)popToVC:(NSString *)className;

-(void)startAnimating:(NSString *)set;
-(void)stopAnimating;
-(void)commitFeedBack;
- (NSString *)convertToJsonData:(NSMutableArray *)dictArr;


-(BOOL)doActionWithLoginState:(void (^)(void))actionBlock needForceLogin:(BOOL)needForce;
// 生成随机boundary字符串的函数
- (NSString *)generateBoundaryString ;
-(void)openCreditUrl:(NSString *)type;
-(void)presentWebviewWithUrl:(NSString *)urlString andTitle:(NSString *)title;
@end
